{% extends '::base.html.twig' %}
{% block body %}
{% if error is defined %}
    <div>{% if error.message is defined %}{{ error.message }}{% endif %}</div>
{% endif %}
{% if redirect is defined %}
    <p>Vous devez vous authentifier afin de passer votre commande.</p>
{% endif %}
<form action="{{ path('LPCISIIPHP2012Bundle_login_check') }}" method="post">
    <label for="username">Login</label>
    <input type="text" id="username" name="login" value="{% if last_username is defined %}
{{ last_username }}{% endif %}" />

    <label for="password">Mot de passe</label>
    <input type="password" id="password" name="mdp" />

    {#
        If you want to control the URL the user is redirected to on success (more details below)
#}
        <input type="hidden" name="_target_path" value="{% if redirect is defined %}
{{ redirect }}{% endif %}" />
    

    <input type="submit" name="connection" />
</form>
{% endblock %}